package com.itheima.dao;

import com.itheima.pojo.ExceptionLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ExceptionLogMapper extends Mapper<ExceptionLog> {



    @Select("select * from t_exception_log where create_time between #{time1} and #{time2}")
    @Results({
            @Result(column = "exception_json",property = "exceptionJson"),
            @Result(column = "exception_message",property = "exceptionMessage"),
            @Result(column = "create_time",property = "createTime"),
            @Result(column = "update_time",property = "updateTime"),
            @Result(column = "ip_source",property = "ipSource")
    })
    List<ExceptionLog> selectTime(@Param("time1") String time1, @Param("time2") String time2);
}
